package com.ocm.warehouse.feign;

import com.ocm.core.tool.api.R;
import com.ocm.warehouse.bo.StockLockBO;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotNull;

/**
 * Author:   hqy
 * Date:     2021/12/4 20:42
 * Description:
 */
@Component
public class IStockFallback implements IStockClient{


	@Override
	public R<Boolean> hasStockBySpuId(@NotNull Long spuId) {
		return R.fail("连接超时");
	}

	@Override
	public R<Long> stockLock(StockLockBO stockLocks) {
		return R.fail("连接超时");
	}

	@Override
	public R stockUnLock(Long orderId) {
		return R.fail("连接超时");
	}
}
